package com.stars.home.adapter;

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.stars.home.R;
import com.stars.home.databinding.ItemContentBinding;
import com.stars.home.model.bean.TipsItem;
import com.stars.home.vmodel.ChosePlaceVModel;
import com.trailer.base.base.BAdapter;


import org.jetbrains.annotations.NotNull;

public class ChosePlaceToAdapter extends BAdapter<TipsItem, BaseDataBindingHolder<ItemContentBinding>> {

    private ChosePlaceVModel vm;

    public ChosePlaceToAdapter(ChosePlaceVModel vm) {
        super(R.layout.item_content, null);
        this.vm = vm;
    }

    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemContentBinding> helper, TipsItem todo) {
        ItemContentBinding binding = helper.getDataBinding();
        binding.setItem(todo);
        binding.setVm(vm);

    }
}
